@import '~antd/lib/style/themes/default.less';

html,
body,
#root {
  height: 100%;
}

.colorWeak {
  filter: invert(80%);
}

.ant-layout {
  min-height: 100vh;
}

canvas {
  display: block;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (max-width: @screen-xs) {
  .ant-table {
    width: 100%;
    overflow-x: auto;
    &-thead > tr,
    &-tbody > tr {
      > th,
      > td {
        white-space: pre;
        > span {
          display: block;
        }
      }
    }
  }
}

// Compatible with IE11
@media screen and(-ms-high-contrast: active), (-ms-high-contrast: none) {
  body .ant-design-pro > .ant-layout {
    min-height: 100vh;
  }
}

table {
  width: inherit;
}

.table {
  display: table;
  margin: 1em auto;

  table {
    border: 1px double #b3b3b3;
    border-collapse: collapse;
    border-spacing: 0;

    th {
      min-width: 2em;
      padding: 0.4em;
      font-weight: 700;
      background: #fafafa;
      border: 1px solid #d9d9d9;
    }
    td {
      min-width: 2em;
      padding: 0.4em;
      border: 1px solid #d9d9d9;
    }
  }
}

@media screen and (max-width: 1600px) {
  body {
    zoom: 90%;
  }
}
